﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JKF.HandlerLayer
{
    /// <summary>
    /// Reponse返回的信息
    /// 最后修改时间2010-05-23
    /// </summary>
    public class ResponseInf
    {
        private string _messageCode = "ok";

        private bool _success = true;
        public bool Success
        {
            set { _success = value; }
            get { return _success; }
        }

        /// <summary>
        /// 返回代码
        /// </summary>
        public string MessageCode
        {
            get { return _messageCode; }
            set { _messageCode = value; }
        }

        private string _message = string.Empty;

        /// <summary>
        /// 返回消息
        /// </summary>
        public string Message
        {
            get { return _message; }
            set { _message = value; }
        }

        private Object _data;
        /// <summary>
        /// 返回数据
        /// </summary>
        public Object Data
        {
            get { return _data; }
            set { _data = value; }
        }
        private string _formatString = string.Empty;

        /// <summary>
        /// 日期格式字符串
        /// </summary>
        public string FormatString
        {
            get { return _formatString; }
            set { _formatString = value; }
        }
        /// <summary>
        /// 序列化模型
        /// </summary>
        public Object Mode { set; get; }
    }

    public class CodeName
    {
        public string code;
        public string name;
    }
}
